Don't try to reach example.com in a test
authorAlex Crichton <alex@alexcrichton.com>
Sun, 14 May 2017 17:36:01 +0000 (10:36 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 15 May 2017 14:49:12 +0000 (07:49 -0700)
Instead specify localhost

tests/bad-config.rs

index f82495cc2ee63ccac86189764a029fe265e10baa..af3ce725e845a44616e04b3b36e4fdc058b3bf4a 100644 (file)
@@ -691,7 +691,7 @@ fn ambiguous_git_reference() {
         authors = []
 
         [dependencies.bar]
-        git = "https://example.com"
+        git = "https://127.0.0.1"
         branch = "master"
         tag = "some-tag"
     "#)
@@ -865,7 +865,7 @@ fn both_git_and_path_specified() {
         authors = []
 
         [dependencies.bar]
-        git = "https://example.com"
+        git = "https://127.0.0.1"
         path = "bar"
     "#)
         .file("src/lib.rs", "");